package com.sdg.controller;

import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/")
@PropertySource({"classpath:config/config.properties"})
public class IndexController {
    //页面显示
    @RequestMapping(value = "index", method = RequestMethod.GET)
    public String index() {
        return "index";
    }

    //页面显示
    @RequestMapping(value = "home", method = RequestMethod.GET)
    public String home() {
        return "home";
    }

}
